package main

import (
	"fmt"
)

type QuantityStatistics struct {
	NumberOfFile      int
	NumberOfDirectory int
}

var FileQuantityStatistics QuantityStatistics

func PrintStatistics() {
	var d, f string
	if FileQuantityStatistics.NumberOfDirectory == 0 || FileQuantityStatistics.NumberOfDirectory == 1 {
		d = "directory"
	} else {
		d = "directories"
	}
	if FileQuantityStatistics.NumberOfFile == 0 || FileQuantityStatistics.NumberOfFile == 1 {
		f = "file"
	} else {
		f = "files"
	}
	fmt.Printf("\n%d %s, %d %s\n", FileQuantityStatistics.NumberOfDirectory, d, FileQuantityStatistics.NumberOfFile, f)
}
